package cn.interestingshop.dao;


import cn.interestingshop.entity.Goods;
import cn.interestingshop.entity.User;

import java.util.List;

public interface GoodsDao {

    public Goods selectOne(Integer id);

    public List<Goods> selectAll(String keyWord);

    public List<Goods> selectAll(Integer currentPageNo, Integer pageSize);

    int findUserCount();


    int findUserCount(List<Goods> goods);

    public List<Goods> selectOne(Integer id, Integer type,Integer currentPageNo, Integer pageSize);

    int findUserCount(Integer id, Integer type);

    public int kjKc(int id,int stock);

    public int deleteById(int id);

    public int executeUpdate(Goods goods);

    public int insert(Goods goods);
}
